package stringbuffer_;

/**
 * @author wly
 * @version V1.0.0
 * @date 2022/12/22 16:32
 */
public class StringBufferExercise01 {
    public static void main(String[] args) {
        String str = null;
        StringBuffer sb = new StringBuffer();
        sb.append(str);
        System.out.println(sb);
        System.out.println(sb.length());
        StringBuffer sb2 = null;
        try {
            sb2 = new StringBuffer(str);
        } catch (Exception e) {
            System.out.println("exception = " + e.getMessage());
        }
        System.out.println(sb2);
    }
}
